package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Customer;
import com.atguigu.jxc.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author gwk
 * @create 2021 -09 -05 0:09
 */
public interface CustomerDao {
    Integer getTotal(@Param("customerName")String customerName);

    List<Goods> list(@Param("offSet") Integer offSet,
                              @Param("rows") Integer rows,
                              @Param("customerName")String customerName);

    Customer findCustomerByName(String customerName);

    Integer addCustomer(Customer customer);

    Integer updateCustomer(Customer customer);

    Integer delete(@Param("ids") List ids);
}
